package com.atguigu04.override.test1;

/**
 * ClassName: OrderTest
 * Package: com.atguigu04.override.test1
 * Description:
 *
 * @Author ZY
 * @Create 21:06
 * @Version 1.0
 */
public class OrderTest {
    public void method1(){
        Order order = new Order();

        order.orderDefault = 1;
        order.orderProtected = 1;
        order.orderPublic = 1;

        order.methodDefault();
        order.methodProtected();
        order.methodPublic();

        //受封装性的影响，不能调用
//        order.orderPrivate = 1;

    }
}
